import Vue from 'vue';
import Vuex from 'vuex';
Vue.use(Vuex)
const store = new Vuex.Store({
    state:{
        theme: "theme_bule",
        theme_green:"theme_green",
        color:'rgb(78, 115, 223)'
    },
    mutations:{
        changeThemeColor(state,val){
            state.theme = val;
            state.color = 'rgb(142, 163, 160)';
            console.log('换主题',state.theme)
        }
    }
})
 
//创建并暴露store
export default store;